package com.ip.controller.auth;

import com.ip.pojo.common.ResponseEntity;
import com.ip.pojo.common.UserInfoVO;
import com.ip.pojo.model.IpConfigListVO;
import com.ip.pojo.model.UserInfoDO;
import com.ip.service.IpConfigManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ip/manager")
public class IpMangerController {

    @Autowired
    private IpConfigManagerService ipConfigManagerService;

    @GetMapping("/ipList")
    public ResponseEntity<List<IpConfigListVO>> queryUserRelateIpConfig(UserInfoVO userInfoVO) {
        return ResponseEntity.success(ipConfigManagerService.queryUserIpList(userInfoVO));
    }
}
